package com.wicket.okrframework.biz.service.dto.req;


import com.wicket.okrframework.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

@Data
public class TributPowerDto extends BaseDto implements Serializable {

    /**
     * 分配对象类型编码:
     */
    @ApiModelProperty("分配对象类型编码")
    private String typeCode;

    /**
     * 分配对象ID:
     */
    @ApiModelProperty("分配对象ID")
    private String allocationObjectId;

    /**
     * 权限编码:
     */
    @ApiModelProperty("权限编码")
    private String privacyCode;

    /**
     * 是否接口权限:
     */
    @NotNull(message = "是否接口权限不能为空")
    @ApiModelProperty("是否接口权限")
    private String isportPrivacy;

    /**
     * 权限路由:
     */
    @ApiModelProperty("权限路由")
    private String privacyRoute;

    /**
     * 是否数据权限:
     */
    @NotNull(message = "是否数据权限不能为空")
    @ApiModelProperty("是否数据权限")
    private String isDataPrivacy;

    /**
     * 数据父模型编码:
     */
    @ApiModelProperty("数据父模型编码")
    private String dataModel;

    /**
     * 权限类别:
     */
    @ApiModelProperty("权限类别")
    private String privacyCategory;

    /**
     * 权限业务用途:
     */
    @ApiModelProperty("权限业务用途")
    private String businessPurposes;
    /**
     * 冗余职务角色编码:
     */
    @ApiModelProperty("冗余职务角色编码")
    private String positionRoleCode;
    /**
     * 权限分配ID:
     */
    @ApiModelProperty("权限分配ID")
    private String privacyDistributionId;
    /**
     * 权限ID:
     */
    @ApiModelProperty("权限ID")
    private String privacyId;
    /**
     * 权限图标:
     */
    @ApiModelProperty("权限图标")
    private String privacyLogo;
    /**
     * 权限名称:
     */
    @ApiModelProperty("权限名称")
    private String privacyName;
    /**
     * 主体生命周期:
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;
    /**
     * 是否存档:
     */
    @ApiModelProperty("是否存档")
    private String isArchive;
    /**
     * 操作人就职记录ID:
     */
    @ApiModelProperty("操作人就职记录ID")
    private String operationInductionId;
    /**
     * 操作时间:
     */
    @ApiModelProperty("操作时间")
    private Date operateTime;
/**
     * 角色ID 
     */
    @ApiModelProperty("角色ID")
    private String	 roleId;

    /**
     * 角色标识 
     */
    @ApiModelProperty("角色标识")
    private String	 roleCode;

    @Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      TributPowerDto that = (TributPowerDto) o;
      return  typeCode == that.typeCode&&allocationObjectId == that.allocationObjectId&&privacyCode == that.privacyCode&&isportPrivacy == that.isportPrivacy&&privacyRoute == that.privacyRoute&&isDataPrivacy == that.isDataPrivacy&&dataModel == that.dataModel&&privacyCategory == that.privacyCategory&&businessPurposes == that.businessPurposes&&positionRoleCode == that.positionRoleCode&&privacyDistributionId == that.privacyDistributionId&&privacyId == that.privacyId&&privacyLogo == that.privacyLogo&&privacyName == that.privacyName&&subjectLifeCycle == that.subjectLifeCycle&&isArchive == that.isArchive&&operationInductionId == that.operationInductionId&&operateTime == that.operateTime&&roleId == that.roleId&&roleCode == that.roleCode;
    }

    @Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), typeCode,allocationObjectId,privacyCode,isportPrivacy,privacyRoute,isDataPrivacy,dataModel,privacyCategory,businessPurposes,positionRoleCode,privacyDistributionId,privacyId,privacyLogo,privacyName,subjectLifeCycle,isArchive,operationInductionId,operateTime,roleId,roleCode);
    }
}
